DRV_INCS_ROOT :=
DRV_SRCS_ROOT := drivers

DRV_INCS := $(DRV_INCS_ROOT)
DRV_SRCS := $(DRV_SRCS_ROOT)/ramfs \
			$(DRV_SRCS_ROOT)/rtc \
			$(DRV_SRCS_ROOT)/systick

DRV_ALL_INCS := $(DRV_INCS)
DRV_ALL_SRCS := $(DRV_SRCS)

INC_DIRS := $(DRV_ALL_INCS)
SRC_DIRS := $(DRV_ALL_SRCS)

H_FILES := $(patsubst %, -I %, $(INC_DIRS))
S_FILES := $(SRC_DIRS)
C_FILES := $(SRC_DIRS)

CCBUILD_PATH = $(S_FILES) $(C_FILES)
# HEADFILE_PATH = $(H_FILES)

include buildcmd.mki
include buildobjs.mki

# 目标依赖关系
.PHONY : all everything build_bsp

all : build_bsp
build_bsp : everything
everything : $(BUILD_MK_DRIV_OBJS)

include buildrule.mki